{__NOLAYOUT__}
<layout name="disshop_nosearch" />

<style type="text/css">
.header-9km2 {
	background-color: #ef3d69;
	padding: 10px 0;
	position: relative;
}

.header-9km2 .btn-back {
	position: absolute;
	left: 15px;
	top: 10px;
	display: block;
	width: 10px;
	height: 20px;
	background-image: url("/emall/images/back-1.png");
	background-size: 10px 20px;
	background-position: left top;
	background-repeat: no-repeat;
}

.header-9km2 .title {
	text-align: center;
	color: #ffffff;
}
</style>
<div class="header-9km2">
	<span class="btn-back" onclick="history.back()">&nbsp;</span>
	<p class="title">销售订单</p>
</div>

<style type="text/css">
    .list-1{display: -webkit-box; margin: auto;border-top: 1px solid #e0e0e0; border-bottom: 1px solid #e0e0e0;background-color: #ffffff;}
    .list-1 li{ -webkit-box-flex:1; padding: 10px 0;text-align: center;border-left:2px solid #e0e0e0;}
    .list-1 li.noborder{border: none;}
    .list-1 .name{font-size: 1rem;color: #888888;padding-bottom: 5px;}
    .list-1 .value{color: #990000;}
</style>
<ul class="list-1" style="margin-top:15px;">
    <li class="noborder">
        <p class="name">推广订单</p>
        <p class="value">{$orderCount['orderCount']}</p>
    </li>
    <li>
        <p class="name">我的利益</p>
        <p class="value">¥{:number_format($orderCount['sumSuplus']*1, 2)}</p>
    </li>
</ul>


<style type="text/css">
.add-li-border li{border-bottom:1px solid #ccc;border-top:1px solid #fff;}
    .btn-928 a{
        display: inline-block;
        font-size: 0.8em;
        padding: 1px 8px;
        border-radius: 3px;
        color: #fff;
        margin: 3px auto;
        background-image: -webkit-gradient(linear, left top, left bottom, from(#c00), color-stop(0.5, #c00), to(#b00));
    }
    .add-li-border{font-size: 0.9em;}
    .add-li-border li{padding: 5px 0;}
    .add-li-border li strong{font-weight: normal;}
</style>
<php>
 	$count = count($agentDistributionOrder);
</php>
<if condition="$count">
<div class="order_info mc radius" style="margin-top:10px;">
    <ul class="add-li-border">
    	<volist name="agentDistributionOrder" id="vo" key="index">
        <li style="border-top:none;<if condition="$count eq $index">border-bottom:none;</if>">
            <strong>订单编号</strong>：{$vo['order_id']}<br/>
            <strong>订单金额</strong>：￥{$vo['goods_amount']}元<br/>
            <strong>分成基数</strong>：￥{$vo['surplus']}元<br/>
            <strong>分成金额</strong>：￥{$vo['actualSurplus']}元<br/>
            <strong>下单用户</strong>：{$vo['nickname']}<br/>
            <strong>分成状态</strong> ：{$vo['status']?'已结算':'待结算'}<br/>
        </li>
        </volist>
    </ul>
</div>
</if>

<div style="height:5px;">

</div>